import request from "../../request/request";
//登录
export function loginJs(data){
    return request({
        url:'/api/user/loginUser',
        method:'post',
        params:data
    })
}

//获取当前登录用户
export function userInfoJs(){
    return request({
        url:'/api/user/userinfo',
        method:'post',
    })
}

// 退出登录
export function logoutJs(token){
    return request({
        url:'/api/user/logout',
        method:'get',
        params:{
            token:token
        }
    })
}